home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMKKKKNNNNOOOODDDD((((2222)))) MMMMKKKKNNNNOOOODDDD((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- mknod - make a directory, or a special or ordinary file
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssttttaaaatttt....hhhh>>>>
-
- iiiinnnntttt mmmmkkkknnnnoooodddd ((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ppppaaaatttthhhh,,,, mmmmooooddddeeee____tttt mmmmooooddddeeee,,,, ddddeeeevvvv____tttt ddddeeeevvvv))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _m_k_n_o_d creates a new file named by the path name pointed to by _p_a_t_h. The
- mode of the new file (including file type bits) is initialized from _m_o_d_e.
- The value of the file type bits which are permitted with this system call
- are those listed below. The other types listed in ssssyyyyssss////ssssttttaaaatttt....hhhh are made
- with other system calls, or are not supported by this operating system.
-
- SSSS____IIIIFFFFIIIIFFFFOOOO fifo special
- SSSS____IIIIFFFFCCCCHHHHRRRR character special
- SSSS____IIIIFFFFBBBBLLLLKKKK block special
- SSSS____IIIIFFFFRRRREEEEGGGG ordinary file
-
- All other mode bits are interpreted as described in _c_h_m_o_d(2).
-
- The owner ID of the file is set to the effective user ID of the process.
- The group ID of the file is set to the effective group ID of the process
- or the group ID of the directory in which the file is being created.
- This is determined as follows:
-
- If the underlying filesystem was mounted with the BSD file creation
- semantics flag [see _f_s_t_a_b(4)] or the SSSS____IIIISSSSGGGGIIIIDDDD bit is set [see
- _c_h_m_o_d(2)] on the parent directory, then the group ID of the new file
- is set to the group ID of the parent directory, otherwise it is set
- to the effective group ID of the calling process.
-
- Values of _m_o_d_e other than those above are undefined and should not be
- used. The low-order 9 bits of _m_o_d_e are modified by the process's file
- mode creation mask: all bits set in the process's file mode creation
- mask are cleared [see _u_m_a_s_k(2)]. If _m_o_d_e indicates a block or character
- special file, _d_e_v is a configuration-dependent specification of a
- character or block I/O device. If _m_o_d_e does not indicate a block special
- or character special device, _d_e_v is ignored.
-
- _m_k_n_o_d may be invoked only by the super-user for file types other than
- FIFO special.
-
- _m_k_n_o_d will fail and the new file will not be created if one or more of
- the following are true:
-
- [EPERM] The effective user ID of the process is not super-user.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- MMMMKKKKNNNNOOOODDDD((((2222)))) MMMMKKKKNNNNOOOODDDD((((2222))))
-
-
-
- [ENOTDIR] A component of the path prefix is not a directory.
-
- [ENOENT] A component of the path prefix does not exist.
-
- [EROFS] The directory in which the file is to be created is
- located on a read-only file system.
-
- [EEXIST] The named file exists.
-
- [EFAULT] _P_a_t_h points outside the allocated address space of the
- process.
-
- [ENAMETOOLONG] The length of the _p_a_t_h argument exceeds {_P_A_T_H__M_A_X}, or a
- pathname component is longer than {_N_A_M_E__M_A_X}.
-
- [ENOSPC] The directory in which the entry for the new directory
- is being placed cannot be extended because there is no
- space left on the file system containing the directory
- or the new directory cannot be created because there is
- no space left on the file system that will contain the
- directory or there are no free inodes on the file system
- on which the directory is being created.
-
- [EDQUOT] The directory in which the entry for the new node is
- being placed cannot be extended either because the
- user's quota of disk blocks on the file system
- containing the directory has been exhausted or the
- user's quota of inodes on the file system on which the
- node is being created has been exhausted.
-
- [EINVAL] If you create files of the type fifo special, character
- special, or block special on an NFS-mounted file system.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- mkdir(1), chmod(2), exec(2), mkdir(2), umask(2), fstab(4)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion a value of 0 is returned. Otherwise, a value
- of -1 is returned and _e_r_r_n_o is set to indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-